﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage1.master" AutoEventWireup="true" CodeFile="KHTT_NhatKyMuaHang.aspx.cs" Inherits="ChucNang_KhachHangThanThiet_KHTT_NhatKyMuaHang" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<center><h2>NHẬT KÍ MUA HÀNG</h2></center>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
    	<tr>
    		<td style="width:100px">Khách hàng:</td>
    		<td><asp:Label ID="lbTenKhachHang" runat="server" Text="Label" CssClass="bold" Font-Bold="True"></asp:Label></td>    		
    	</tr>
    	<tr>
    		<td>CMND:</td>
    		<td> <asp:Label ID="lbCMND" runat="server" Text="Label" Font-Bold="True"></asp:Label></td>    		
    	</tr>
    	<tr>
    		<td>Điện thoại:</td>
    		<td><asp:Label ID="lbDienThoai" runat="server" Text="Label" Font-Bold="True"></asp:Label></td>    		
    	</tr>
    	<tr>
    		<td>Địa chỉ</td>
    		<td><asp:Label ID="lbDiaChi" runat="server" Text="Label" Font-Bold="True"></asp:Label></td>    		
    	</tr>
    </table><br />
<div class="itemHeader">Tổng số tiền đã mua trong năm nay: <asp:Label ID="lbTrongNam" runat="server" Text="" ForeColor="#990000" ></asp:Label></div>
    <br />
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" BackColor="White" 
                                    BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4">
        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
        <RowStyle BackColor="White" ForeColor="#330099" />
        <Columns>
            <asp:BoundField DataField="ThoiGianDatHang" HeaderText="Thời gian đặt hàng" />
            <asp:BoundField DataField="TenSP" HeaderText="Sản phẩm" />
            <asp:BoundField DataField="DonGia" HeaderText="Đơn giá" />
            <asp:BoundField DataField="SoluongMua" HeaderText="Số lượng" />
            <asp:BoundField DataField="TongTien" HeaderText="Tổng tiền" />
        </Columns>
        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
            ForeColor="#FFFFCC" />
    </asp:GridView>
   
    
    
<br />
<div class="itemHeader">Tổng số tiền tích lũy từ đầu tới nay: <asp:Label ID="lbTatCa" runat="server" Text="" ForeColor="#990000"></asp:Label>
</div>
<br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4">
        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
        <RowStyle BackColor="White" ForeColor="#330099" />
        <Columns>
            <asp:BoundField DataField="Nam" HeaderText="Năm" />
            <asp:BoundField DataField="DoanhThu" HeaderText="Doanh thu">
                <ItemStyle HorizontalAlign="Right" />
            </asp:BoundField>
        </Columns>
        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
    </asp:GridView>

</asp:Content>

